import os

# 设置Tensorflow的运行日志等级为2--Warning
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tensorflow as tf

if __name__ == '__main__':
    # 生成一个全0的张量
    z1 = tf.zeros(3)
    print(z1)
    z2 = tf.zeros((4, 3))
    print(z2)
    z3 = tf.zeros((5, 4, 3))
    print(z3)
